<?
$smarty=new Smarty();
if(!ANTIHACK) die("ANTIHACK...");
if(!isset($_SESSION['id']) || intval($_SESSION['id'])<1)
	header("location:".base_admin);
else
{
	$id=intval($_SESSION['id']);
}
	$query=query("select * from user where id=$id");
	$num = numrows($query);
	if($num!=1)
		header("location:".base_admin."?act=login&do=logout");
	else
	{
		$r=fetch($query);
		$smarty->assign("data",$r);
	}
$smarty->display("header.htm");
?>